home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 122_01 / syscons < prev    next >
Text File  |  1984-03-05  |  4KB  |  129 lines

  1. PISTOL CONSTANTS:
  2. copyright (C) 1983 by E. E. Bergmann
  3. definitions in alphabetical(ASCII) order
  4. :
  5. ::
  6. *********************************************************
  7. *                            *
  8. * PISTOL-Portably Implemented Stack Oriented Language    *
  9. *            Version 2.0            *
  10. * (C) 1983 by    Ernest E. Bergmann            *
  11. *        Physics, Building #16            *
  12. *        Lehigh Univerisity            *
  13. *        Bethlehem, Pa. 18015            *
  14. *                            *
  15. * Permission is hereby granted for all reproduction and *
  16. * distribution of this material provided this notice is *
  17. * included.                        *
  18. *                            *
  19. *********************************************************
  20. :
  21. ::
  22. A'        ORD('A')
  23.  
  24. CHKLMT        Capacity of the checkstack.
  25.  
  26. COMPBUF        RAM boundary; beginning of compile buffer and
  27.         and maximum dictionary may reach up to.
  28.  
  29. CSIZE        Capacity of case stack.
  30.  
  31. EDITBUF        String area boundary.  Top of input line buffer
  32.         and the bottom of buffer area of editor.
  33.  
  34. FALSE        (logical "false") 0
  35.  
  36. LINEBUF        String area boundary.  Top limit of
  37.         ordinary string storage and start of input line
  38.         buffer.
  39.  
  40. LSIZE        Capacity of loop stack.  An active DO .. LOOP
  41.         requires three entries in this stack.
  42.  
  43. MAXINT        largest (signed) integer value a word can have
  44.         without overflow.  It is analogous to the use
  45.         MAXINT has in PASCAL.
  46.  
  47. MAXLINNO    Largest line number that can or should be used
  48.         by the editor in the buffered file (in the
  49.         edit buffer).  Used by LOAD to distinguish
  50.         between line numbers and pointer to string
  51.         (for filename).
  52.  
  53. MAXORD        Max(ord(char)).Typically 127 (for 7 bit ASCII).
  54.  
  55. MININT        Most negative integer value a word can have
  56.         without underflow. (Cf with MAXINT, above).
  57.  
  58. NEWLINE        Typically ord(<CR>) or ord(<LF>); implemented
  59.         char value used to separate line of text from
  60.         next in internal PISTOL representation.  I/O
  61.         routines must convert external (system file
  62.         and console i/o conventions) to NEWLINE in
  63.         PISTOL.
  64.  
  65. Q'        Ord('Q').
  66.  
  67. RAMMAX        System constant that points to the end of
  68.         accessible RAM.
  69.  
  70. RAMMIN        System constant that points to the start of
  71.         accessible RAM; the area between RAMMIN and
  72.         USER contains system constants that can be read
  73.         from but not written to.
  74.  
  75. READ-PROTECT    Boolean system constant.  If it is true, then
  76.         operators that access memory for reading are
  77.         checked for legal ranges.  For example,
  78.         addresses must be in the range,[RAMMIN..RAMMAX]
  79.         for W@ and [STRINGSMIN..STRINGSMAX] for C@ .
  80.         If the address during a read is outside these
  81.         limits, an error "READ VIOLATION" is generated
  82.         and the    program does an ABORT.
  83.  
  84. RSIZE        Capacity of the return stack.
  85.  
  86. SAFE-END
  87.  
  88. SSIZE        Capacity of (parameter stack).
  89.  
  90. STRINGSMAX    System constant that points to the end of the
  91.         strings area.
  92.  
  93. STRINGSMIN    System constant that points to the start of the
  94.         strings area.
  95.  
  96. TRUE        Not FALSE. Usually set to -1 which is
  97.         represented by all binary 1's.
  98.  
  99. USER        System constant that points to near the bottom
  100.         of RAM.  It points to the lowest system
  101.         variable location and marks the top of the area
  102.         where the system constants are in RAM; these
  103.         constants can be read with W@, but not changed
  104.         by W!
  105.  
  106. VBASE        Bottom limit in RAM of vocabulary stack.
  107.  
  108. VERSION        20 for PISTOL versioo 2.0.
  109.  
  110. VMAX        Upper limit in RAM of vocabulary stack.
  111.  
  112. VSIZE        Capacity of vocabulary stack.
  113.  
  114. W        Size in address units of a word in RAM.
  115.  
  116. WRITE-PROTECT    Boolean system constant.  If it is true, then
  117.         operators that access memory for writing are
  118.         checked for legal ranges.  For example,
  119.         addresses must be in the range,    [USER..RAMMAX]
  120.         for W! and [STRINGSMIN..STRINGSMAX] for C! .
  121.         If the address during a write is outside these
  122.         limits, an error "WRITE VIOLATION" is generated
  123.         and the    program does an ABORT.
  124.  
  125. :
  126. N    System constant that points to the start of the
  127.         strings area.
  128.  
  129. TRUE        Not